package cn.bootx.table.modify.pgsql.index;

import cn.bootx.table.modify.annotation.DbKey;
import cn.bootx.table.modify.annotation.DbTable;
import cn.bootx.table.modify.postgresql.annotation.DbPgSqlIndex;
import cn.bootx.table.modify.postgresql.constants.PgSqlIndexType;
import lombok.Data;

/**
 * 简单索引配置
 * @author xxm
 * @date 2023/6/2
 */
@Data
@DbTable(comment = "简单索引配置")
public class SimpleIndexEntity {

    @DbKey
    private Long id;

    @DbPgSqlIndex
    private String normalIndex1;

    @DbPgSqlIndex(name = "index_2",comment = "普通索引2")
    private String normalIndex2;

    @DbPgSqlIndex(type = PgSqlIndexType.BTREE,unique = true, comment= "唯一索引")
    private Long uniqueIndex;

    @DbPgSqlIndex(type = PgSqlIndexType.HASH,comment = "哈希索引")
    private String fulltextIndex;
}
